package com.kaifamiao.entity;

import java.time.LocalDate;

// 实体类 Customer 与 数据库中的 t_customers 表对应
public class Customer {

    private Integer oid; // 对象标识符(object identifier)
    private String username; // 登录名称
    private String password; // 登录密码
    private String salt; // 盐值
    private String nickname; // 昵称
    private LocalDate registrationDate; // 注册日期

    public Integer getId() {
        return oid;
    }

    public void setId(Integer id) {
        this.oid = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public LocalDate getRegistrationDate() {
        return registrationDate;
    }

    public void setRegistrationDate(LocalDate registrationDate) {
        this.registrationDate = registrationDate;
    }
}
